package com.itheima.health.service;

import com.itheima.health.entity.OrderInfo;
import com.itheima.health.pojo.Order;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface OrderService {
    /**
     * @Author: JASON
     * @Date: 15:57 2021/1/10
     * @Parms [order]
     * @ReturnType: void
     * @Description: 添加预约订单
    */
    Order add(Order order);

    /**
     * @Author: JASON
     * @Date: 9:25 2021/1/11
     * @Parms [id]
     * @ReturnType: com.itheima.health.pojo.Order
     * @Description: 根据id查找订单
    */
    OrderInfo findById(Integer id);


    /**
     * @Author: JASON
     * @Date: 17:44 2021/1/15
     * @Parms []
     * @ReturnType: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     * @Description: 根据套餐查询预约人数
    */
    List<Map<String,Object>> countBySetMeal();

}
